package com.vhall.component.controller.pendant;

import com.vhall.component.controller.pendant.facade.PendantApiFacade;
import com.vhall.component.entity.page.vo.PageVO;
import com.vhall.component.entity.pendant.vo.*;
import com.vhall.component.framework.common.annotation.VhallComponent;
import com.vhall.component.plugin.common.annotation.ApiSignatureAuth;
import com.vhall.component.plugin.common.annotation.VssTokenAuth;
import com.vhall.component.service.pendant.PendantService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Api端接口
 *
 * @author guoxin.wang
 * @date 2021-11-01
 */

@VhallComponent
public class PendantApiController implements PendantApiFacade {

    @Autowired
    private PendantService pendantService;

    @ApiSignatureAuth
    @VssTokenAuth
    @Override
    public PageVO<PendantListPushPendantRspVO> getPushList(PendantListPushPendantReqVO reqVO) {
        return pendantService.getPushList(reqVO);
    }

    @ApiSignatureAuth
    @VssTokenAuth
    @Override
    public Boolean pushScreen(PendantPushScreenReqVO reqVO) {
        return pendantService.pushScreen(reqVO);
    }

    @ApiSignatureAuth
    @VssTokenAuth
    @Override
    public Boolean clickReport(PendantClickReportReqVO reqVO) {
        return pendantService.clickReport(reqVO);
    }

    @ApiSignatureAuth
    @VssTokenAuth
    @Override
    public PendantDefaultFixedRspVO getDefaultFixed(PendantDefaultFixedReqVO reqVO) {
        return pendantService.getDefaultFixed(reqVO);
    }

}


